<template>
  <div>
    <div class="form">
      <div class="search">
        <el-input placeholder="客户名称" v-model="customerName" class="search_info">
          <i slot="prefix" class="el-input__icon el-icon-search"></i>
        </el-input>
        <el-input placeholder="产品名称" v-model="productName" class="search_info">
          <i slot="prefix" class="el-input__icon el-icon-search"></i>
        </el-input>
        <div class="pos_right_btn">
          <el-button @click="reset()">重置</el-button>
          <el-button type="primary" @click="getList(1)" class="searchBtn">搜索</el-button>
        </div>
      </div>
      <el-table
        class="listTable"
        ref="multipleTable"
        v-loading="listLoading"
        :data="list"
        border
        fit
        highlight-current-row
        style="width: 100%;"
        @selection-change="handleSelectionChange"
      >
        <!-- <el-table-column type="selection" >
          
        </el-table-column>-->
        <el-table-column label="业务流水号" prop="id" width="100" align="center">
          <template slot-scope="{row}">
            <span>{{ row.reqId }}</span>
          </template>
        </el-table-column>
        <el-table-column label="客户名称" align="center">
          <template slot-scope="{row}">
            <span>{{ row.customerName }}</span>
          </template>
        </el-table-column>
        <el-table-column label="区域" align="center">
          <template slot-scope="{row}">
            <span>{{ row.customerArea }}</span>
          </template>
        </el-table-column>
        <el-table-column label="产品名称" align="center">
          <template slot-scope="{row}">
            <span>{{ row.productName }}</span>
          </template>
        </el-table-column>
        <el-table-column label="需求金额" width="100" align="center">
          <template slot-scope="{row}">
            <span>{{ row.financeAmount }}</span>
          </template>
        </el-table-column>
        <el-table-column label="审核人" align="center">
          <template slot-scope="{row}">
            <span>{{ row.createBy }}</span>
          </template>
        </el-table-column>
        <el-table-column label="审核时间" sortable align="center">
          <template slot-scope="{row}">
            <span>{{ row.createTime }}</span>
          </template>
        </el-table-column>
        <el-table-column label="管户机构" sortable align="center">
          <template slot-scope="{row}">
            <span>{{ row.createDept }}</span>
          </template>
        </el-table-column>
        <el-table-column label="管户人" sortable align="center">
          <template slot-scope="{row}">
            <span>{{ row.createName }}</span>
          </template>
        </el-table-column>
        <el-table-column label="操作" width="160" align="center">
          <template slot-scope="{row}">
            <div class="opt_table">
              <div class="opt_font" @click="preview(row.reqId, row.customerId, row.flowUid)">授信</div>
            </div>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination
        :total="total"
        layout="total, sizes, prev, pager, next"
        :page-size="limit"
        :page-sizes="[10, 20, 50, 100]"
        @size-change="handleSizeChange"
        :current-page.sync="curPage"
        @current-change="getList($event)"
        class="sortStyle"
      />
      <el-dialog :visible.sync="detailShow" title="订单详情" width="1096px">
        <div class="tab">
          <div class="tab_border change" @click="checkShow = true">拒绝</div>
          <div @click="showApply()" class="tab_border changes">申请担保</div>
          <div @click="showCredit()" class="tab_border">授信</div>
        </div>
        <div>
          <div class="dia_top">
            <div class="pad_right">
              订单编号：
              <span class="dia_color">{{taskNo}}</span>
            </div>
            <div>
              申请时间：
              <span class="dia_color">{{createTime}}</span>
            </div>
          </div>
          <div class="flex_row">
            <div>
              <div class="statuBtn">待授信</div>
              <div class="statuBtns">担保审核中</div>
            </div>
            <div class="step_top">
              <div class="step">
                <div class="step_width">订单生成</div>
                <div class="step_width">审核</div>
                <div class="step_width">授信</div>
                <div class="step_width">放款</div>
              </div>
              <el-steps align-center space :active="stepNum">
                <el-step
                  v-for="item in stepList"
                  :key="item.id"
                  :title="item.createTime"
                  :description="item.createBy"
                ></el-step>
              </el-steps>
            </div>
          </div>
          <div class="tap">
            <div class="tap_left" @click="infoShow = true">基本信息</div>
            <div class="tap_right" @click="infoShow = false">担保信息</div>
          </div>
          <div v-show="infoShow">
            <div class="detail_title pos_top">
              <span></span>
              需求信息
            </div>
            <el-table
              class="detailTable"
              v-loading="listLoading"
              :data="needData"
              border
              fit
              highlight-current-row
              style="width: 100%;"
            >
              <el-table-column label="需求编号" prop="id" align="center">
                <template slot-scope="{row}">
                  <span>{{ row.reqId }}</span>
                </template>
              </el-table-column>
              <el-table-column label="企业名称" align="center">
                <template slot-scope="{row}">
                  <span>{{ row.customerName }}</span>
                </template>
              </el-table-column>
              <el-table-column label="申请产品" align="center">
                <template slot-scope="{row}">
                  <span>{{ row.productName }}</span>
                </template>
              </el-table-column>
              <el-table-column label="担保方式" align="center">
                <template slot-scope="{row}">
                  <span v-if="row.guaranteeType == '' || row.guaranteeType == 9">不限</span>
                  <span v-if="row.guaranteeType === '0'">抵押</span>
                  <span v-if="row.guaranteeType == 1">质押</span>
                  <span v-if="row.guaranteeType == 2">信用</span>
                  <span v-if="row.guaranteeType == 3">一般保证</span>
                </template>
              </el-table-column>
              <el-table-column label="融资金额(万元)" align="center">
                <template slot-scope="{row}">
                  <span>{{ row.financeAmount }}</span>
                </template>
              </el-table-column>
              <el-table-column label="融资期限" align="center">
                <template slot-scope="{row}">
                  <span>{{ row.financeTime }}</span>
                </template>
              </el-table-column>
            </el-table>
            <div class="detail_title pos_top">
              <span></span>
              抵质押物信息
            </div>
            <el-table
              class="detailTable"
              :data="bizApplyList"
              border
              fit
              highlight-current-row
              style="width: 100%;"
            >
              <el-table-column label="序号" prop="id" type="index" align="center"></el-table-column>
              <el-table-column label="抵质押物类型" align="center">
                <template slot-scope="{row}">
                  <span>{{ row.lastIncome }}</span>
                </template>
              </el-table-column>
              <el-table-column label="预估价值" align="center">
                <template slot-scope="{row}">
                  <span>{{ row.estimatedAmount }}</span>
                </template>
              </el-table-column>
            </el-table>
            <div class="detail_title pos_top top_more">
              <div class="det_flex">
                <div>
                  <span></span>
                  企业详情
                </div>
                <div class="comBtn">
                  <div class="btnCol">信用报告</div>
                  <div class="btnCol">关联图谱</div>
                  <div class="btnCol">信用分</div>
                  <div class="btnCol">黑名单</div>
                </div>
              </div>
            </div>
            <div class="detail_info">
              <div class="row">
                <div class="info_left">
                  <div class="info_left_title">
                    <div class="font">企业名称</div>
                  </div>
                  <div class="info_left_content">{{listData.name}}</div>
                </div>
                <div class="info_right">
                  <div class="info_left_title">
                    <div class="font">统一社会信用代码</div>
                  </div>
                  <div class="info_left_content">{{listData.uniscId}}</div>
                </div>
              </div>
              <div class="row">
                <div class="info_left">
                  <div class="info_left_title">
                    <div class="font">企业类型</div>
                  </div>
                  <div class="info_left_content">{{listData.econat}}</div>
                </div>
                <div class="info_right">
                  <div class="info_left_title">
                    <div class="font">经营状态</div>
                  </div>
                  <div class="info_left_content">{{listData.entState}}</div>
                </div>
              </div>
              <div class="row">
                <div class="info_left">
                  <div class="info_left_title">
                    <div class="font">所属行业</div>
                  </div>
                  <div class="info_left_content">{{listData.industry}}</div>
                </div>
                <div class="info_right">
                  <div class="info_left_title">
                    <div class="font">成立时间</div>
                  </div>
                  <div class="info_left_content">{{parseTime(listData.estDate,'{y}-{m}-{d}')}}</div>
                </div>
              </div>
              <div class="row">
                <div class="info_left">
                  <div class="info_left_title">
                    <div class="font">公司类型</div>
                  </div>
                  <div class="info_left_content">{{listData.entTypeName}}</div>
                </div>
                <div class="info_right">
                  <div class="info_left_title">
                    <div class="font">法定代表人</div>
                  </div>
                  <div class="info_left_content">{{listData.legalPerson}}</div>
                </div>
              </div>
              <div class="row">
                <div class="info_left">
                  <div class="info_left_title">
                    <div class="font">发照日期</div>
                  </div>
                  <div class="info_left_content">{{parseTime(listData.apprDate,'{y}-{m}-{d}')}}</div>
                </div>
                <div class="info_right">
                  <div class="info_left_title">
                    <div class="font">企业地址</div>
                  </div>
                  <div class="info_left_content">{{listData.address}}</div>
                </div>
              </div>
              <div class="row">
                <div class="info_left">
                  <div class="info_left_title">
                    <div class="font">注册资本(万元)</div>
                  </div>
                  <div class="info_left_content">{{listData.regcap}}</div>
                </div>
                <div class="info_right">
                  <div class="info_left_title">
                    <div class="font">行政区划</div>
                  </div>
                  <div class="info_left_content">{{listData.branchNo}}</div>
                </div>
              </div>
              <div class="row">
                <div class="info_left">
                  <div class="info_left_title" style="height:unset">
                    <div class="font">经营范围</div>
                  </div>
                  <div class="info_left_contents">{{listData.opScope}}</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div v-show="!infoShow">
          <el-table
            class="detailTable"
            v-loading="listLoading"
            :data="provinceData"
            border
            fit
            highlight-current-row
            style="width: 100%;"
          >
            <el-table-column label="序号" align="center" type="index"></el-table-column>
            <el-table-column label="业务流水号" align="center">
              <template slot-scope="{row}">
                <span>{{ row.bizWarrantInfo.applyId }}</span>
              </template>
            </el-table-column>
            <el-table-column label="申请时间" align="center">
              <template slot-scope="{row}">
                <span>{{ row.bizWarrantInfo.publishDate }}</span>
              </template>
            </el-table-column>
            <el-table-column label="担保机构" align="center">
              <template slot-scope="{row}">
                <span>{{ row.warrantDeptId }}</span>
              </template>
            </el-table-column>
            <el-table-column label="业务进度" align="center">
              <template slot-scope="{row}">
                <span v-if="row.bizWarrantInfo.status == '1010'">处理中</span>
                <span v-if="row.bizWarrantInfo.status == '2000'">已通过</span>
                <span v-if="row.bizWarrantInfo.status == '3000'">已拒绝</span>
              </template>
            </el-table-column>
            <el-table-column label="担保额度" align="center">
              <template slot-scope="{row}">
                <span>{{ row.approveMount }}</span>
              </template>
            </el-table-column>
            <el-table-column label="担保期限" align="center">
              <template slot-scope="{row}">
                <span>{{ row.bizWarrantInfo.guaranteeTime }}</span>
              </template>
            </el-table-column>
            <el-table-column label="担保利率" align="center">
              <template slot-scope="{row}">
                <span>{{ row.bizWarrantInfo.guaranteeRadio }}</span>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <!-- <div class="backBtn">
          <el-button @click="goback">返回</el-button>
          <el-button type="primary">抢单</el-button>
        </div>-->
      </el-dialog>
      <div class="apply">
        <el-dialog :visible.sync="applyShow" title="担保申请" width="666px">
          <div class="centers">
            <div class="flex_row pad_top">
              <div class="font_info">预授信额度</div>
              <el-input v-model="sellMoney" placeholder="请输入预授信额度" class="input_info" />
            </div>
            <div class="flex_row pad_top">
              <div class="font_info">担保机构</div>
              <el-select v-model="orgnise" placeholder="请选择担保机构" class="input_info">
                <el-option
                  v-for="item in mortgageList"
                  :key="item.key"
                  :label="item.value"
                  :value="item.key"
                ></el-option>
              </el-select>
            </div>
            <div class="footers">
              <el-button @click="applyBack()">返回</el-button>
              <el-button type="primary" class="searchBtn" @click="apply()">申请</el-button>
            </div>
          </div>
        </el-dialog>
      </div>
      <div class="credit">
        <el-dialog :visible.sync="creditShow">
          <el-button type="primary" @click="addCredit()" v-if="roles != 'admin'">新增授信</el-button>
          <el-table
            class="detailTable"
            v-loading="listLoading"
            :data="addData"
            border
            fit
            highlight-current-row
            style="width: 100%;"
          >
            <el-table-column label="授信合同号" prop="id" align="center">
              <template slot-scope="{row}">
                <span>{{ row.approveContractNo }}</span>
              </template>
            </el-table-column>
            <el-table-column label="是否首贷" align="center">
              <template slot-scope="{row}">
                <span v-if="row.ifFirstApprove == 0">是</span>
                <span v-if="row.ifFirstApprove == 1">否</span>
              </template>
            </el-table-column>
            <el-table-column label="授信开始日" align="center">
              <template slot-scope="{row}">
                <span>{{ row.approveStart }}</span>
              </template>
            </el-table-column>
            <el-table-column label="授信到期日" align="center">
              <template slot-scope="{row}">
                <span>{{ row.approveEnd }}</span>
              </template>
            </el-table-column>
          </el-table>
          <div class="detail_title pos_top">
            <span></span>
            综合授信
          </div>
          <el-table
            class="detailTable"
            v-loading="listLoading"
            :data="creditList"
            border
            fit
            highlight-current-row
            style="width: 100%;"
          >
            <el-table-column label="序号" align="center" type="index">
              <!-- <template slot-scope="{row}">
                <span>{{ index }}</span>
              </template>-->
            </el-table-column>
            <el-table-column label="担保类型" align="center">
              <template slot-scope="{row}">
                <span v-if="row.guaranteeType == '' || row.guaranteeType == 9">不限</span>
                <span v-if="row.guaranteeType === '0'">抵押</span>
                <span v-if="row.guaranteeType == 1">质押</span>
                <span v-if="row.guaranteeType == 2">信用</span>
                <span v-if="row.guaranteeType == 3">一般保证</span>
              </template>
            </el-table-column>
            <el-table-column label="授信金额（万元）" align="center">
              <template slot-scope="{row}">
                <span>{{ row.approveAmount }}</span>
              </template>
            </el-table-column>
            <el-table-column label="操作" align="center">
              <template slot-scope="{row}">
                <div class="opt_table">
                  <div class="opt_font" @click="del(row.approveDetailId)">删除</div>
                </div>
              </template>
            </el-table-column>
          </el-table>
          <div class="footers">
            <el-button @click="goBack()">返回</el-button>
            <el-button type="primary" class="searchBtn" @click="isCredit('2000')">确认授信</el-button>
          </div>
        </el-dialog>
        <div class="addCredits">
          <el-dialog :visible.sync="addShow" title="新增授信" width="666px">
            <div class="centers">
              <!-- <div class="flex_row pad_top">
                <div class="font_info">授信合同号</div>
                <el-input v-model="approveId" placeholder="请输入授信合同号" class="input_info"/>
              </div>-->
              <div class="flex_row pad_top">
                <div class="font_info">担保类型</div>
                <el-select v-model="guaranteeType" placeholder="请选择担保类型" class="input_info">
                  <el-option
                    v-for="item in guaranteeTypeList"
                    :key="item.key"
                    :label="item.value"
                    :value="item.key"
                  ></el-option>
                </el-select>
              </div>
              <div class="flex_row pad_top">
                <div class="font_info">授信金额</div>
                <el-input v-model="approveAmount" placeholder="请输入授信金额" class="input_info" />
              </div>
              <div class="footers">
                <el-button @click="back()">返回</el-button>
                <el-button type="primary" class="searchBtn" @click="add()">新增</el-button>
              </div>
            </div>
          </el-dialog>
        </div>
        <div class="check">
          <el-dialog :visible.sync="checkShow" title="拒绝原因" width="600px">
            <div>
              <el-input v-model="rejectReason" type="textarea" placeholder="请输入拒绝原因"></el-input>
            </div>
            <div class="backBtn btn_top">
              <el-button @click="checkBack">返回</el-button>
              <el-button type="primary" @click="isCredit('3000')">提交</el-button>
            </div>
          </el-dialog>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {
  applyGuarantee,
  getGuaranteeCom,
  auditing,
  insertApproveDetail,
  getApproveInfo,
  dictType,
  approveDetailId,
  getRecordList,
  getBizApplyInfo,
  getCustomerDetail,
  bizApplyInfo,
  approveList
} from "@/api/system/user";
import { MessageBox } from "element-ui";
export default {
  components: {},
  data() {
    return {
      workCode: "",
      workStatus: "",
      status: [],
      list: [],
      listLoading: false,
      total: 0,
      limit: 10,
      curPage: 1,
      listData: [],
      bizApplyList: [],
      detailShow: false,
      value: "",
      needData: [],
      loanList: [],
      moneyList: [],
      infoShow: true,
      sellMoney: "",
      orgnise: "",
      applyShow: false,
      creditShow: false,
      productName: "",
      customerName: "",
      addShow: false,
      guaranteeTypeList: [],
      approveId: "",
      createTime: "",
      taskNo: "",
      guaranteeType: "",
      approveAmount: "",
      stepNum: null,
      stepList: [],
      addData: [],
      creditList: [],
      provinceData: [],
      mortgageList: [],
      reqId: "",
      flowUid: "",
      roles: "",
      checkShow: false,
      rejectReason: ""
    };
  },
  created() {
    this.roles = this.$store.state.user.roles[0];
  },
  mounted() {
    this.getList(1);
    this.dictType();
    this.getGuaranteeCom();
  },
  methods: {
    //担保机构
    getGuaranteeCom() {
      getGuaranteeCom().then(res => {
        res.forEach(element => {
          this.mortgageList.push({
            key: element.deptId,
            value: element.deptName
          });
        });
      });
    },
    applyBack() {
      this.applyShow = false;
    },
    //担保申请
    apply() {
      var params = {
        approveMount: this.sellMoney,
        warrantDeptId: this.orgnise,
        // flowUid: this.flowUid,
        applyId: this.reqId
      };
      applyGuarantee(this.$qs.stringify(params)).then(res => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
        this.applyShow = false;
        this.baseInfo(this.reqId);
      });
    },
    checkBack() {
      this.checkShow = false;
    },
    back() {
      this.addShow = false;
    },
    goBack() {
      this.creditShow = false;
    },
    //授信判断
    isCredit(type) {
      this.checkShow = false;
      var params = {
        status: type,
        rejectReason: this.rejectReason,
        flowUid: this.flowUid,
        bizId: this.reqId
      };
      auditing(params).then(res => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
        this.creditShow = false;
        this.getList();
      });
    },
    //抵押列表
    dictType() {
      dictType("guarantee_type").then(res => {
        res.data.forEach(element => {
          this.guaranteeTypeList.push({
            key: element.dictValue,
            value: element.dictLabel
          });
        });
      });
    },
    //授信删除
    del(id) {
      var params = {
        approveDetailId: id
      };
      // this.listLoading = true
      approveDetailId(this.$qs.stringify(params)).then(res => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
          this.getCredit();
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    //新增
    add() {
      var params = {
        approveId: this.approveId,
        guaranteeType: this.guaranteeType,
        approveAmount: this.approveAmount
      };
      // this.listLoading = true
      insertApproveDetail(this.$qs.stringify(params)).then(res => {
        if (res.code == 200) {
          this.$message({ message: res.msg, type: "success" });
          this.getCredit();
          this.addShow = false;
        } else {
          this.$message({ message: res.msg, type: "error" });
        }
      });
    },
    //新增授信
    addCredit() {
      this.guaranteeType = "";
      this.approveAmount = "";
      this.addShow = true;
    },
    reset() {
      this.customerName = "";
      this.productName = "";
    },
    //授信弹框
    showCredit() {
      this.creditShow = true;
      this.getCredit();
    },
    getCredit() {
      var params = {
        reqId: this.reqId
        // customerId: cid,
      };
      getApproveInfo(params).then(response => {
        this.addData = response.bizApproveInfoList;
        this.creditList = response.detailList;
        this.approveId = response.bizApproveInfoList[0].approveId;
      });
    },
    showApply() {
      this.applyShow = true;
      this.sellMoney = "";
      this.orgnise = "";
    },
    /** 查询用户列表 */
    getList(page) {
      var params = {
        pageNum: page,
        pageSize: this.limit,
        customerName: this.customerName,
        productName: this.productName
      };
      this.listLoading = true;
      approveList(params).then(response => {
        this.list = response.rows;
        this.total = response.total;
        this.listLoading = false;
      });
    },
    //多选
    handleSelectionChange(rows) {
      console.log(rows);
    },
    goback() {
      this.detailShow = false;
    },
    handleSizeChange(val) {
      this.limit = val;
      this.getList(1);
    },
    baseInfo(id, cid, fid) {
      this.flowUid = fid;
      this.reqId = id;
      this.needData = [];
      this.detailShow = true;
      this.listLoading = true;
      var params = {
        reqId: id
        // customerId: cid,
      };
      getBizApplyInfo(params).then(response => {
        this.infoTitle = response.customerName;
        this.listLoading = false;
        this.createTime = response.createTime;
        this.taskNo = response.reqId;
        this.needData.push(response);
        if (response.fspCorInf) {
          this.listData = response.fspCorInf;
        }
        if (response.bizApplyGuaranteePledgeRelativeList) {
          this.bizApplyList = response.bizApplyGuaranteePledgeRelativeList;
        }
        // this.addData =  response.bizApproveInfoList
        this.provinceData = response.bizApplyWarrantRelativeList;
        // this.creditList = response.detailList
      });
    },
    //任务详情
    preview(id, cid, fid) {
      this.baseInfo(id, cid, fid);
      let rDate = {
        reqId: id,
        flowUid: fid
      };
      getRecordList(rDate).then(res => {
        // this.$nextTick(() => {
        this.stepNum = res.size;
        // })
        this.stepList = res.bizFlowInfoVoList;
      });
    }
  }
};
</script>
<style scoped>
.form {
  padding-left: 26px;
  padding-right: 24px;
  padding-top: 24px;
  background: #fff;
}
.search {
  display: flex;
  position: relative;
}
.search_info {
  width: 120px;
  height: 40px;
  margin-right: 16px;
}
.searchBtn {
  margin-left: 16px;
  height: 36px;
}
.sortStyle {
  height: 19px;
  float: right;
  /* right: 24px; */
  margin-top: 20px;
  margin-bottom: 30px;
}
.pos_right_btn {
  position: absolute;
  right: 0;
}
.opt_font {
  cursor: pointer;
  color: #2e82ff;
}
.detail_title {
  font-size: 16px;
  font-weight: 400;
  color: #212121;
  line-height: 22px;
}
.detail_title span {
  padding-left: 4px;
  background: #1e88e5;
  margin-right: 12px;
}
.row {
  display: flex;
  /* padding-bottom: 12px; */
}
.detail_info {
  padding-top: 16px;
}
.info_left {
  display: flex;
}
.info_right {
  display: flex;
  /* padding-left: 202px; */
}
.info_left_title {
  font-size: 14px;
  font-weight: 400;
  color: #616161;
  line-height: 20px;
  width: 256px;
  /* margin-right: 16px; */
  text-align: center;
  min-height: 47px;
  background: #f5f7fa;
  box-shadow: inset 0 -1px 0 0 #dcdfe6;
}
.info_left_title .font {
  position: relative;
  top: 14px;
}
.info_left_content {
  font-size: 14px;
  font-weight: 400;
  color: #212121;
  line-height: 20px;
  width: 256px;
  /* border: 1px solid #DCDFE6; */
  box-shadow: inset -1px -1px 0 0 #dcdfe6;
  text-align: center;
}
.info_left_contents {
  font-size: 14px;
  font-weight: 400;
  color: #212121;
  line-height: 20px;
  width: 769px;
  /* border: 1px solid #DCDFE6; */
  box-shadow: inset -1px -1px 0 0 #dcdfe6;
  text-align: left;
}
.pos_top {
  padding-top: 12px;
}
.top_more {
  margin-top: 8px;
}
.detailTable {
  margin-top: 16px;
}
.opt_font {
  color: #1e88e5;
  cursor: pointer;
}
.page_pos {
  text-align: right;
  padding-top: 10px;
}
.backBtn {
  text-align: center;
  margin-top: 10px;
}
/deep/ .el-dialog {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: calc(100% -30px);
  /* max-width: ; */
}
/deep/ .el-dialog__body {
  /* flex: 1; */
  height: 600px;
  overflow-y: auto;
  padding-top: 0;
}
.tab {
  display: flex;
  position: absolute;
  right: 32px;
  top: 14px;
}
.tab_border {
  border: 1px solid #409eff;
  color: #409eff;
  padding: 10px 12px;
  font-size: 14px;
  width: 82px;
  margin-right: 16px;
  text-align: center;
}
.change {
  border: 1px solid grey;
  color: grey;
  /* width: 82px; */
}
.changes {
  border: 1px solid #f56c6c;
  color: #f56c6c;
  /* width: 82px; */
}
.listTable {
  margin-top: 17px;
}
/deep/ .search_info .el-input__inner {
  width: 120px;
}
.date_picker /deep/ .el-input__inner {
  width: 240px;
}
.opt_table {
  display: flex;
  justify-content: space-around;
}
.footer {
  display: flex;
  justify-content: space-between;
}
.footer_btn {
  position: relative;
  top: 20px;
}
.dia_top {
  display: flex;
}
.dia_color {
  color: #409eff;
}
.pad_right {
  padding-right: 16px;
}
.statuBtn {
  padding: 10px 14px;
  font-size: 14px;
  margin-right: 16px;
  border: 1px solid #f56c6c;
  color: #f56c6c;
  width: 102px;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 14px;
}
.statuBtns {
  padding: 10px 14px;
  font-size: 14px;
  margin-right: 16px;
  border: 1px solid #18b5a6;
  color: #18b5a6;
  width: 102px;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 14px;
}
.step_top {
  position: relative;
  top: 14px;
}
.step {
  display: flex;
  justify-content: space-around;
}
.step_width {
  width: 200px;
  text-align: center;
  padding-bottom: 8px;
}
.comBtn {
  display: flex;
  position: absolute;
  right: 0;
}
.det_flex {
  display: flex;
  position: relative;
}
.btnCol {
  width: 100px;
  text-align: center;
  padding: 8px 14px;
  background: #f56c6c;
  color: #fff;
  border-radius: 4px;
  margin-right: 14px;
}
.flex_row {
  display: flex;
  justify-content: center;
}
.tap {
  display: flex;
}
.tap_left {
  border: 1px solid #1e88e5;
  padding: 6px 8px;
  background: #1e88e5;
  color: #fff;
  cursor: pointer;
}
.tap_right {
  background: #1e88e5;
  border: 1px solid #1e88e5;
  padding: 6px 8px;
  margin-left: 10px;
  color: #fff;
  cursor: pointer;
}
.input_info {
  width: 200px;
}
.select_info {
  width: 200px;
}
.font_info {
  width: 80px;
  position: relative;
  top: 8px;
}
.centers {
  /* display: flex; */
  text-align: center;
}
.pad_top {
  padding-top: 10px;
}
.footers {
  margin-top: 30px;
  text-align: center;
}
.apply /deep/ .el-dialog__body {
  height: 200px;
}
.credit /deep/ .el-dialog__body {
  height: 400px;
}
.addCredits /deep/ .el-dialog__body {
  height: 240px;
}
/deep/ .check .el-dialog__body {
  /* flex: 1; */
  height: 200px;
  overflow-y: auto;
  padding-top: 0;
}
.btn_top {
  padding-top: 20px;
}
</style>
